<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="generator" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link href="css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
<link href="css/print.css" rel="stylesheet" type="text/css"  media="print" />
<script src="js/jquery-1.10.1.min.js"></script>
<script src="js/side.js" type="text/javascript"></script>

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>

<body>
<!-- Popup -->
<div id="Popup">

<!-- SubPopup -->
<div id="SubPopup">
<script type="text/javascript">
$(function(){
$(".select").each(function(){
var s=$(this);
var z=parseInt(s.css("z-index"));
var dt=$(this).children("dt");
var dd=$(this).children("dd");
var _show=function(){dd.slideDown(200);dt.addClass("cur");s.css("z-index",z+1);};
var _hide=function(){dd.slideUp(200);dt.removeClass("cur");s.css("z-index",z);};
dt.click(function(){dd.is(":hidden")?_show():_hide();});
dd.find("a").click(function(){dt.html($(this).html());_hide();});
$("body").click(function(i){ !$(i.target).parents(".select").first().is(s) ? _hide():"";});})})
</script>
<form action="major/addOrUpdate_Major" method="get">
<div class="form_boxC">
<p>"<span class="f_cB">*</span>"号为必填项目</p>
<table cellpadding="0" cellspacing="0">
<tr>
<td><input name="mid" type="hidden" size="5" value="${major.mid }"></div></td>
</tr>
<tr>
<th>专业名称 <span class="f_cB">*</span></th>
<td><div class="txtbox floatL" style="width:150px;"><input  name="mname" type="text" size="12" value="${major.mname }"></div></td>
</tr>
<tr>
<th>专业价格 <span class="f_cB">*</span></th>
<td><div class="txtbox floatL" style="width:150px;"><input id="mprice" name="mprice" type="text" size="12" value="${major.mprice }"></div></td>
</tr>
<tr>
<th>教学费 <span class="f_cB">*</span></th>
<td><div class="txtbox floatL" style="width:150px;"><input id="tprice" name="tprice" type="text" size="12" value="${major.tprice }"></div></td>
</tr>
<tr>
<tr>
<th>住宿费<span class="f_cB">*</span></th>
<td><div class="txtbox floatL" style="width:150px;"><input id="aprice" name="aprice" type="text" size="12" value="${major.aprice }"></div></td>
</tr>
<tr>
<th>学杂费 <span class="f_cB">*</span></th>
<td><div class="txtbox floatL" style="width:150px;"><input id="lprice" name="lprice" type="text" size="12" value="${major.lprice }" onblur="p()"></div></td>
</tr>
<tr>
<th>专业描述 <span class="f_cB">*</span></th>
<td><div class="txtbox floatL" style="width:150px;"><input name="mdecx" type="text" size="12" value="${major.mdecx }"></div></td>
</tr>
<tr>
<th>父类 <span class="f_cB">*</span></th>
        <td>
			<select id="fatherid" name="fatherid" onchange="change()">
				<option value="0">默认为父类菜单</option>
				
				<c:forEach items="${pageModel }" var="m">
					<c:if test="${m.fatherid == 0 }">
					<option value="${m.mid }">
						${m.mname}
					</option>
					</c:if>
				</c:forEach>
				
			</select>
        </td>
</tr>
</table>
</div>
<div id="BtmBtn">
<div class="btn_boxB floatR mag_l20"><input id="back" type="button" value="取消"></div>
<div class="btn_box floatR"><input name="" type="submit" value="提交"></div>
</div>
</form>
</div>

<!-- SubPopup -->


</div>

<!-- /Popup -->
</body>
</html>
<script type="text/javascript">
	$(function () {
		$('#back').click(function(){
				window.location.href="major/queryAll_Major";
		 });
    });
   /*  function change(){
     	var valueObj = document.getElementById('fatherid');
        var valueIndex = valueObj.selectedIndex;
    	var value = valueObj.options[valueIndex].value;
    	var input[] = document.getElementById("price");
    	//alert(value);
    	if(value == 0){
    		input[0].style.display="none";
    		input[1].style.display="none";
    		input[2].style.display="none";
    		input[3].style.display="none";
    	}else if(value > 0){
    		input1.style.display="block";
    		input2.style.display="block";
    		input3.style.display="block";
    		input4.style.display="block";
    		input5.style.display="block";
    		input6.style.display="block";
    		input7.style.display="block";
    	} 
    } */
</script>